import request from '@/router/axios';
import config from '@/config/website'

//列表
export const getList = (current, size, equipment) => {
    return request({
        url: '/api/blade-sale/customermodel/page',
        method: 'get',
        params: {
            current,
            size,
            ...equipment
        }
    })
}
export const getListAll = () => {
    return request({
        url: '/api/blade-sale/customermodel/list',
        method: 'get',
    })
}

//新建
export const add = (data) => {
    return request({
        url: '/api/blade-sale/customermodel/save',
        method: 'post',
        data
    })
}
//修改
export const update = (data) => {
    return request({
        url: '/api/blade-sale/customermodel/update',
        method: 'post',
        data
    })
}
//删除
export const remove = (ids) => {
    return request({
        url: '/api/blade-sale/customermodel/remove',
        method: 'post',
        params: {
            ids
        }
    })
}
export const getOptionList = () => {
    return request({
        url: '/api/blade-sale/customersatisfactionset/list',
        method: 'get',
    })
}
//查看
export const detail = (id) => {
    return request({
        url: '/api/blade-sale/customermodel/detail',
        method: 'get',
        params: {
            id
        }
    })
}